//返回顶部
var floating1=document.querySelector("#floating");
var goTop1=document.querySelector("#goTop");

window.onscroll=function(){
    var t=document.documentElement.scrollTop||document.body.scrollTop;
    if (t>200){
        floating1.style.display='block';
    }else {
        floating1.style.display='none';
    }
    if(t>5950){
        floating1.classList.add("db-dw")
    }else {
        floating1.classList.remove("db-dw")
    }
};
goTop1.addEventListener('click',function(){
//    window.scrollTo(0,0);
    window.scrollTo({
        top:0,
        behavior:'smooth'
    })
});